# coding: utf-8
"""
对PMD文件进行解析，然后导入到blender中
"""
import os
import sys
import math
import mathutils
import logging
import bpy
from .pymeshio import pmd
from .pymeshio.pmd import reader
from .pymeshio import englishmap

def _execute(filepath = ""):
	"""
	load pmd file to context.
	"""
	#load pmd file
	model = reader.read_from_file(filepath)
	if not model:
		logging.debug('pmd failed to load %s',filepath)
		return
	else :
		logging.debug('pmd load successful!')
	#这里需要注意的是，MMD模型一般多为日语系统下
	#制作，所以编码多为cp932
	pass


